import {get,post} from "./index";

//===================菜单管理
//获取列表
export const menulist = ()=>get('/menulist',{istree:1});
//添加 或 编辑
export const addOrEdit = (url,data)=>post(url,data);
//删除
export const menudelete = (data)=>post('/menudelete',data);
//获取一条数据的详情
export const menuinfo = params =>get('/menuinfo',params);



//登录
export const loginInfo = data=>post('/userlogin',data);